Header Ads Widget

practical-9 | prepare CFG for a simple C program | Fundamental of Software development

 _Practical-9

prepare CFG for a simple C program (write C program for same)



==>>>

write a c program of your choice :--

#include<stdio.h>
#include<conio.h>
int main()
{
    int a,b;
    printf("enter value of a and b");
    scanf("%d %d",&a, &b);

while(a!=b)
    {

        if(a>b)
            {
                printf("a is greater");
            }

        else
            {
                printf("b is greater");
            }
    }
return 0;
}








Post a Comment

2 Comments