jeudi 3 août 2017

How to Write the code for following patterns programming questions in C?

Question 1:- Write a C/C++ program to print the pattern for the given value N. For example N=5 ?

1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5  

Question 2:- Write a C/C++ program to print the pattern for the given value N. For example N=5 ?

5 5 5 5 5
4 5 5 5 5
4 3 5 5 5
4 3 2 5 5
4 3 2 1 5
5 4 3 2 1 

Question 3:- Write a C/C++ function that verifies the equation zzz + hh = bb*b and return true or false ?

Aucun commentaire:

Enregistrer un commentaire