Write a C program to find the GCD of two numbers.
#include<stdio.h> #include<conio.h> main() { int a,b,r,t; printf("\n Enter two number"); scanf("%d %d",&a,&b); if(a<b) { t=a; a=b; b=t; } do { r=a%b; a=b; b=r; }while(r!=0); printf("\n The GCD=%d",a); getch(); }
Output:
Write a C- Program To Count The Lines, Words, Characters In A Given Text.
Write the characteristics of a good user interface.
Write a C program to convert binary to decimal using function.
Convert the Regular Expression into e-NFA and then corresponding DFA.
Briefly describe different user interface elements.
Write short notes on the following: